// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './Main'
import router from './router'
import TabBar from "./components/tab-bar"
import Search from "./components/search"
import NavBar from './components/nav-bar'
import Loading from './components/loading'
import { Lazyload } from 'vant'
import errorImg from './assets/img/error.png'
import loadingImg from './assets/img/loading.gif'
import store from '../../store/index'
import api from './api/index'
import 'vant/lib/index.css'

Vue.prototype.$api = api;
Vue.use(Lazyload, {
    loading:loadingImg,
    error:errorImg
});
Vue.component('TabBar',TabBar);
Vue.component('Loading',Loading);
Vue.component('Search',Search);
Vue.component('NavBar',NavBar);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
})

